import request from '@/utils/request'

// 查询列表
export function listEaVehicle(query) {
  return request({
    url: '/admin-api/member/vehicle/list',
    method: 'get',
    params: query
  })
}

// 查询详细
export function getEaVehicle(id) {
  return request({
    url: `/admin-api/member/vehicle/${id}`,
    method: 'get'
  })
}

// 删除
export function delEaVehicle(id) {
  return request({
    url: `/admin-api/member/vehicle/${id}`,
    method: 'delete'
  })
}

// 车辆审核失败
export function verifyFail(id) {
  return request({
    url: `/admin-api/member/vehicle/verifyFail/${id}`,
    method: 'put'
  })
}

// 车辆审核成功
export function verifySuccess(id) {
  return request({
    url: `/admin-api/member/vehicle/verifySuccess/${id}`,
    method: 'put'
  })
}
